package com.foreverwin.mes.common.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 打印记录
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-03-06
 */
@TableName("Z_PRINT_LOG")
public class PrintLog extends Model<PrintLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 打印机名称
     */
   @TableField("PRINTER")
   private String printer;
    /**
     * 打印模板
     */
   @TableField("PRINT_TEMPLATE")
   private String printTemplate;
    /**
     * 打印参数
     */
   @TableField("PRINT_PARAM")
   private String printParam;
    /**
     * 打印服务器
     */
   @TableField("PRINT_SERVER")
   private String printServer;
    /**
     * 状态
     */
   @TableField("STATUS")
   private String status;
    /**
     * 错误信息
     */
   @TableField("ERROR_MSG")
   private String errorMsg;
    /**
     * 是否补打印
     */
   @TableField("IS_REPRINT")
   private String isReprint;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
    /**
     * 更新日期
     */
   @TableField("UPDATED_DATE_TIME")
   private Date updatedDateTime;
    /**
     * 创建人员
     */
   @TableField("CREATE_USER_BO")
   private String createUserBo;
    /**
     * 更新人员
     */
   @TableField("UPDATE_USER_BO")
   private String updateUserBo;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getPrinter() {
      return printer;
   }

   public void setPrinter(String printer) {
      this.printer = printer;
   }

   public String getPrintTemplate() {
      return printTemplate;
   }

   public void setPrintTemplate(String printTemplate) {
      this.printTemplate = printTemplate;
   }

   public String getPrintParam() {
      return printParam;
   }

   public void setPrintParam(String printParam) {
      this.printParam = printParam;
   }

   public String getPrintServer() {
      return printServer;
   }

   public void setPrintServer(String printServer) {
      this.printServer = printServer;
   }

   public String getStatus() {
      return status;
   }

   public void setStatus(String status) {
      this.status = status;
   }

   public String getErrorMsg() {
      return errorMsg;
   }

   public void setErrorMsg(String errorMsg) {
      this.errorMsg = errorMsg;
   }

   public String getIsReprint() {
      return isReprint;
   }

   public void setIsReprint(String isReprint) {
      this.isReprint = isReprint;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getUpdatedDateTime() {
      return updatedDateTime;
   }

   public void setUpdatedDateTime(Date updatedDateTime) {
      this.updatedDateTime = updatedDateTime;
   }

   public String getCreateUserBo() {
      return createUserBo;
   }

   public void setCreateUserBo(String createUserBo) {
      this.createUserBo = createUserBo;
   }

   public String getUpdateUserBo() {
      return updateUserBo;
   }

   public void setUpdateUserBo(String updateUserBo) {
      this.updateUserBo = updateUserBo;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String PRINTER = "PRINTER";

   public static final String PRINT_TEMPLATE = "PRINT_TEMPLATE";

   public static final String PRINT_PARAM = "PRINT_PARAM";

   public static final String PRINT_SERVER = "PRINT_SERVER";

   public static final String STATUS = "STATUS";

   public static final String ERROR_MSG = "ERROR_MSG";

   public static final String IS_REPRINT = "IS_REPRINT";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String UPDATED_DATE_TIME = "UPDATED_DATE_TIME";

   public static final String CREATE_USER_BO = "CREATE_USER_BO";

   public static final String UPDATE_USER_BO = "UPDATE_USER_BO";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "PrintLog{" +
         "handle = " + handle +
         ", site = " + site +
         ", printer = " + printer +
         ", printTemplate = " + printTemplate +
         ", printParam = " + printParam +
         ", printServer = " + printServer +
         ", status = " + status +
         ", errorMsg = " + errorMsg +
         ", isReprint = " + isReprint +
         ", createdDateTime = " + createdDateTime +
         ", updatedDateTime = " + updatedDateTime +
         ", createUserBo = " + createUserBo +
         ", updateUserBo = " + updateUserBo +
         "}";
   }
}